<div>

    <h3>API: {{ apiName }}</h3>

    <div class="row">
        <div class="col-md-12">
            <form>
                <div class="row" ng-repeat="paramInfo in paramsInfo">
                    <div class="col-md-6">
                        <div class="input-group">
                            <span class="input-group-addon">{{ paramInfo.name }}</span>
                            <input type="text" ng-model="params[$index]" class="form-control" placeholder="{{ paramInfo.type }}" required>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6">
                        <button ng-click="callApi(params)" class="btn btn-primary">发送API请求</button>
                        <button ng-click="clear()" onclick="return false;" class="btn">清除表单数据</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <pre>{{ apiResponse }}</pre>
        </div>
    </div>

</div>